﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="school_view_edu.aspx.cs" Inherits="HY.WEB.SA.school_view_edu" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
   
</head>
<body>
    <form id="form1" runat="server" >
    <div>

    <ext:PageManager ID="PageManager1" runat="server"  AjaxAspnetControls="lblmemo"/>
    <ext:HiddenField ID="hidsid" runat="server"></ext:HiddenField>
    <ext:HiddenField ID="hidsbh" runat="server"></ext:HiddenField>
    <ext:Label ID="labResult" CssClass="result" EncodeText="false" runat="server">
    </ext:Label>

        <ext:Form ID="Form2" runat="server" BodyPadding="5px" EnableBackgroundColor="true" Title="表单">
            <Rows>
                <ext:FormRow ID="FormRow1" runat="server">
               <Items>
      <ext:SimpleForm ID="SimpleForm1" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        ShowBorder="True" Title="学校信息" Width="718px" ShowHeader="True">
        <Items>
            <ext:HiddenField ID="HiddenField1" runat="server">
            </ext:HiddenField>
             <ext:Label runat="server" Width="200px" Label="编号" ID="lblbh" >
            </ext:Label>
       
            <ext:Label runat="server" Width="200px" Label="学校名称" ID="txtschool" >
            </ext:Label>

 <ext:Label runat="server" Width="200px" Label="学校规模" ID="lblsize" >
            </ext:Label>
                    <ext:Label runat="server"  Width="200px" Label="类型" ID="lbltype"    > </ext:Label>
         <ext:Label runat="server"  Width="200px" Label="性质" ID="lblxz"    > </ext:Label>
                     <ext:Label runat="server"  Label="联系人 " ID="txtperson"> </ext:Label>
                     <ext:Label runat="server" Width="200px" Label="性别" ID="lblsex" >
            </ext:Label>
            <ext:Label runat="server" Width="200px" Label="职务" ID="lbljob" >
            </ext:Label>
              <ext:Label runat="server"  Label="电话" ID="txttel" > </ext:Label>
                <ext:Label runat="server"  Label="QQ" ID="txtqq"   > </ext:Label>
            <ext:Label runat="server"  Label="MSN/SKYPE" ID="txtmsn"   > </ext:Label>

          <ext:Label runat="server" Width="200px"  Label="业务员" ID="lblsales"    > </ext:Label>
                  
           
               <ext:Label runat="server"  Label="传真" ID="txtfax"   > </ext:Label>
               <ext:Label runat="server"  Label="邮箱" ID="txtemail"    > </ext:Label>
                     
 <ext:Label runat="server"  Label="地址" ID="txtaddress" >
            </ext:Label>

               <ext:Label runat="server" Label="邮政编码" ID="txtpost"  >
            </ext:Label>

            
              <ext:Label runat="server"  Label="网站" ID="txtwebsite" >
            </ext:Label>
       
            <ext:Label runat="server"  Label="注册日期" ID="lbldtime" >
            </ext:Label>
       
 <ext:Label runat="server"  Label="最后更新时间" ID="updtime" >
            </ext:Label>

          
                
                <ext:Button ID="Button1" runat="server" OnClientClick="javascrip:history.back(-1);" Text="返回上一页">
            </ext:Button> 
        </Items>
    </ext:SimpleForm>

       <ext:SimpleForm ID="SimpleForm2" BodyPadding="5px" runat="server" EnableBackgroundColor="true"
        ShowBorder="True" Title="招聘信息" ShowHeader="True" AutoHeight="true">
        <Items>
           <ext:Grid ID="Grid1" Title="学生列表"     PageSize="15" ShowBorder="true" ShowHeader="true"  AutoWidth="true" 
            AllowPaging="true" AutoScroll="true" runat="server"  EnableCheckBoxSelect="True"   DataKeyNames="sid" Height="300" 
        OnPageIndexChange="Grid1_PageIndexChange" EnableRowNumber="True" OnSort="Grid1_Sort" >
                  <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                          <ext:Button ID="btaddedu" Text="添加信息"  Icon="Add"   runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
        
           <ext:TemplateField Width="60px"  HeaderText="编号" >
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:WindowField ColumnID="myWindowField2" Width="60px" WindowID="Window2"
                DataTextField="ebh" HeaderText="信息编号" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid" SortField="ebh" 
                DataIFrameUrlFormatString="schedu_view.aspx?sid={0}" DataWindowTitleField="ebh"
                DataWindowTitleFormatString="查看学生信息 - {0}" />                
           <ext:BoundField Width="100px" DataField="schname" DataFormatString="{0}" SortField="schname" HeaderText="学校名称" />
            <ext:BoundField Width="100px" DataField="spro" DataFormatString="{0}" SortField="spro" HeaderText="专业" />
            <ext:BoundField Width="50px" DataField="mnum" DataFormatString="{0}" SortField="mnum" HeaderText="男生学生" />
            <ext:BoundField Width="50px" DataField="fnum" DataFormatString="{0}" SortField="fnum" HeaderText="女生学生" />
            <ext:BoundField Width="50px" DataField="snum" DataFormatString="{0}" SortField="snum" HeaderText="合计生源" />
            <ext:BoundField Width="50px" DataField="fyear" DataFormatString="{0}" SortField="fyear" HeaderText="毕业年份" />
              <ext:BoundField Width="100px" DataField="stype" DataFormatString="{0}" SortField="stype" HeaderText="生源类型" />
            <ext:BoundField Width="100px" DataField="sdate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="有效日期" />
            <ext:BoundField Width="100px" DataField="edate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="结束日期" />
  
        </Columns>
    </ext:Grid>
        
        <ext:Grid ID="Grid2" Title="电话记录"      PageSize="15" ShowBorder="true" ShowHeader="false"  AutoWidth="true" 
            AllowPaging="true" AutoScroll="true" runat="server" EnableCheckBoxSelect="True"  AllowSorting="true"   DataKeyNames="sid" Height="300" 
              OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" OnSort="Grid2_Sort" >
            <Toolbars>
            <ext:Toolbar ID="Toolbar2" runat="server">
                <Items>
                    <ext:Button ID="dtteldel" Text="删除选中项" Icon="Delete" OnClick="btnDelete2_Click" runat="server">
                    </ext:Button>
                   <ext:Button ID="btaddtel" Text="添加电话记录" Icon="Add"  runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>            
        <ext:BoundField Width="60px" DataField="person" SortField="person" HeaderText="联系人" />
         <ext:WindowField ColumnID="myWindowField2" Width="60px" WindowID="Window2" DataTextField="tel" HeaderText="电话" 
                DataTextFormatString="{0}" DataIFrameUrlFields="sid"
                DataIFrameUrlFormatString="tel_view.aspx?sid={0}" DataWindowTitleField="tel"
                DataWindowTitleFormatString="查看电话记录 - {0}" />
               
          <ext:BoundField Width="100px" DataField="pdtime" DataFormatString="{0:yyyy-M-d HH:mm:ss}" HeaderText="通话时间" SortField="pdtime" />
          <ext:BoundField Width="100px" DataField="pname" SortField="pname" HeaderText="业务员" />
             <ext:TemplateField Width="160px"  HeaderText="电话内容" >
                <ItemTemplate>
                    <asp:Literal ID="Literal2" runat="server" Text=<%#Server.HtmlDecode(Eval("pmemo").ToString())%>></asp:Literal>             
                </ItemTemplate>
             </ext:TemplateField>
             </Columns>
            </ext:Grid>


      </Items>
  
    </ext:SimpleForm>


      </Items>
    </ext:FormRow>
      
               
            </Rows>
        </ext:Form>
      
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="459px">
    </ext:Window>
    
        <ext:Window ID="Window2" Title="查看" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="309px">
    </ext:Window>
      <ext:ContentPanel ID="ContentPanel1" runat="server" AutoHeight="true" AutoWidth="true" BodyPadding="5px" 
                EnableBackgroundColor="true" ShowHeader="true" Title="简介">                 
                    <asp:Literal ID="lblmemo" runat="server"></asp:Literal>
            </ext:ContentPanel>                                   
          
    </div>
    </form>
</body>
</html>
